package com.kitbox.hl.meshow.service;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @Auther: honglei
 * @Date: 2019/9/4 11:35
 * @Description:
 */
public interface ICamundaService {

    @ApiOperation(value = "启动流程")
    @PostMapping(value = "/startProcessInstance/{processId}")
    void startProcessInstance(@PathVariable String processId, Map<String, Object> variables);

    @PostMapping(value = "/complete/{taskId}")
    void complete(@PathVariable String taskId, Map<String, Object> variables);
}
